
// 布局页面存放的全局数据

export default {
    namespaced: true,
    state: {
        isNav: false,   //默认false  展开状态

        theme:'#032121',  // 默认没有颜色
    },
    mutations: {
        changeisNav(state: any, val: boolean) {
            state.isNav = !val   //这里要取反
            // console.log('改变后：',state.isNav);            
        },

        changeTheme(state:any,val:boolean){
            state.theme = val
        }
    }
}